﻿@{
	ViewBag.Title = "CMS Login";
	var action = Request.IsAjaxRequest() ? "AjaxLogin" : "Login";
}
<div id="containernarrow">
	<h2>@ViewBag.Title</h2>
	@Html.ValidationSummary(true)
	@using (Html.BeginForm(action, "Account", new { area = "cmsadmin" }, FormMethod.Post )) {
		@Html.AntiForgeryToken()
		@Html.Hidden("ReturnUrl", ViewBag.ReturnUrl as String)
		<fieldset>
			<div>
				<label for="Username">Username</label>
				@Html.TextBox("Username", ViewBag.Username as String)
			</div>
			<div>
				<label for="Password">Password</label>
				@Html.Password("Password")
			</div> 
		</fieldset>
		<input type="submit" value="Login" />
	}
</div>